<template>
  <div class="water">
    <div class="water-top-sty">
      <ul class="water-ul">
        <li>
          <span class="icon-sty">
            <img src="../images/sc.png" />
          </span>
          <span class="water-title">水厂</span>
          <span class="water-digt">2</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/ll.png" />
          </span>
          <span class="water-title">流量</span>
          <span class="water-digt">33</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/yl.png" />
          </span>
          <span class="water-title">压力</span>
          <span class="water-digt">66</span>
        </li>
      </ul>
      <ul class="water-ul">
        <li>
          <span class="icon-sty">
            <img src="../images/xfs.png" />
          </span>
          <span class="water-title">消防栓</span>
          <span class="water-digt">2</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/fm.png" />
          </span>
          <span class="water-title">阀门</span>
          <span class="water-digt">33</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/jd.png" />
          </span>
          <span class="water-title">节点</span>
          <span class="water-digt">66</span>
        </li>
      </ul>
    </div>
    <div class="water-bottom-sty">
      <ul class="water-ul">
        <li>
          <span class="icon-sty">
            <img src="../images/sz.png" />
          </span>
          <span class="water-title">水质</span>
          <span class="water-digt">2</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/jyz.png" />
          </span>
          <span class="water-title">加压站</span>
          <span class="water-digt">33</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/dyh.png" />
          </span>
          <span class="water-title">大用户</span>
          <span class="water-digt">66</span>
        </li>
      </ul>
      <ul class="water-ul">
        <li>
          <span class="icon-sty">
            <img src="../images/jsj.png" />
          </span>
          <span class="water-title">给水井</span>
          <span class="water-digt">2</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/sb.png" />
          </span>
          <span class="water-title">水表</span>
          <span class="water-digt">33</span>
        </li>
        <li>
          <span class="icon-sty">
            <img src="../images/qtgd.png" />
          </span>
          <span class="water-title">其他管点</span>
          <span class="water-digt">66</span>
        </li>
      </ul>
    </div>
  </div>
  <!--<map-box style="position:absolute;height: 78vh;width: 94vw;top: 0;left: 0;"></map-box>-->
</template>

<script>
import { overview } from "@/api/monitor"; // 不同模块的api 分开放，
import MapBox from "@/components/map";

export default {
  name: "monitor",
  components: {
    MapBox
  },
  mounted() {
    const that = this;
    overview({}).then(res => {
      var resultData = res.data;
      console.log(resultData);
      // 处理拿到的数据理拿到的数据
      this.tableData = resultData;
    });
  },
    data() {
    return {
      isShow: [],
      tableData:{}
    };
  },
};
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
// .water{
//   position: relative;
// }
.water-top-sty {
  display: block;
  height: 49%;
  width: 100%;
  border: 1.2px solid #0cf;
  background: #2c4972;
  -webkit-box-shadow: 0 0 0.5rem #1800ff;
  box-shadow: 0 0 0.5rem #1800ff;
}
.water-bottom-sty {
  display: block;
  height: 49%;
  width: 100%;
  margin-top: 1%;
  border: 1.2px solid #0cf;
  background: #032657;
  -webkit-box-shadow: 0 0 0.5rem #1800ff;
  box-shadow: 0 0 0.5rem #1800ff;
}
.water-ul {
  height: 46%;
  display: flex;
  align-items: center;
}
.water-ul li {
  width: calc(33.33333% - 0.66667px);
  position: relative;
  margin: 0 1rem;
}
.icon-sty img {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  vertical-align: middle;
}
.water-title {
  color: #0cf;
  font-size: 1rem;
}
.water-digt {
  color: #fff;
  font-size: 1.22rem;
  position: absolute;
  right: 0;
}
</style>
